//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.example.sens.utils;

public class BaseDateDiffResult {
    private Integer diffNum;
    private Integer diffUnit;

    public BaseDateDiffResult() {
    }

    public Integer getDiffNum() {
        return this.diffNum;
    }

    public Integer getDiffUnit() {
        return this.diffUnit;
    }

    public void setDiffNum(Integer diffNum) {
        this.diffNum = diffNum;
    }

    public void setDiffUnit(Integer diffUnit) {
        this.diffUnit = diffUnit;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BaseDateDiffResult)) {
            return false;
        } else {
            BaseDateDiffResult other = (BaseDateDiffResult)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$diffNum = this.getDiffNum();
                Object other$diffNum = other.getDiffNum();
                if (this$diffNum == null) {
                    if (other$diffNum != null) {
                        return false;
                    }
                } else if (!this$diffNum.equals(other$diffNum)) {
                    return false;
                }

                Object this$diffUnit = this.getDiffUnit();
                Object other$diffUnit = other.getDiffUnit();
                if (this$diffUnit == null) {
                    if (other$diffUnit != null) {
                        return false;
                    }
                } else if (!this$diffUnit.equals(other$diffUnit)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BaseDateDiffResult;
    }

    public int hashCode() {
        Boolean PRIME = true;
        int result = 1;
        Object $diffNum = this.getDiffNum();
        result = result * 59 + ($diffNum == null ? 43 : $diffNum.hashCode());
        Object $diffUnit = this.getDiffUnit();
        result = result * 59 + ($diffUnit == null ? 43 : $diffUnit.hashCode());
        return result;
    }

    public String toString() {
        return "BaseDateDiffResult(diffNum=" + this.getDiffNum() + ", diffUnit=" + this.getDiffUnit() + ")";
    }
}
